﻿/// <reference path='jquery-1.5.js'/>

function NAC_SetElementHeight(top, botton) {
    var topHeight;
    if ($(top).is(':hidden')) {
        topHeight = $(top).height();
    }
    else {
        topHeight = 0;
    }
    var InnerHeight = $(document).height();
    var portHeight = (InnerHeight - topHeight);
    $(botton).height(portHeight);
}

function NAC_SetHeightFull(botton) {
    var height = $(document).height();
    $(botton).height(height);
}
